<html>
<head>
<meta NAME="author" CONTENT="Erika Biro">
    <script type="text/javascript" src="../../sh_main.js"></script>
    <script type="text/javascript" src="../../sh_javascript.js"></script>
    <script type="text/javascript" src="../../sh_html.js"></script>
    <link REL ="stylesheet" TYPE="text/css" HREF="../../sh_nedit.css" TITLE="Style">
<link REL ="stylesheet" TYPE="text/css" HREF="../../../marvinmanuals.css" TITLE="Style">
<title>MarvinSketch Example - Hydrogen atoms</title>
</head>
<body onload="sh_highlightDocument();">

<h1>MarvinSketch Example - Hydrogen atoms</h1>
<p>The description and usage of hydrogen atoms in Marvin can be found in the
<a href="../../../help/sketch/sketch-basic.html#implicit-explicit-H">Implicit/Explicit Hydrogens</a> paragraph
of the Marvin User's Guide.</p>
<p>The detailed description of Implicit/Explicit Hydrogens can be found
in the <a href="../../../help/developer/core/hydrogens.html">Implicit/Explicit Hydrogens</a>
paragraph of the Developer's Guide.</p>
<p>The basic description of structure parameters and structure display parameters can be found in the
<a href="../../../help/developer/sketchman.html#structuredisplayparameters">Structure Display parameters</a> paragraph in the Developer's Guide.
</p>

<h4>How to work with structure parameters</h4>

<p>This example demonstrates how to remove explicit hydrogen atoms and show
all implicit hydrogen atoms in applets. The Developer's Guide contains the detailed
description of the parameters used in this example.</p>
Removing the explicit hydrogen atoms during structure import by using the importConv parameter:
<pre class="sh_javascript">
    msketch_param("<a href="../../../help/developer/sketchman.html#parameters.importConv">importConv</a>", "-H");
</pre>
Showing the implicit hydrogen atoms on all atoms with the implicitH parameter:
<pre class="sh_javascript">
    msketch_param("<a href="../../../help/developer/sketchman.html#parameters.implicitH">implicitH</a>", "all");
</pre>

<p>The input molecule is loaded from the file
named <code>structure.mol</code> which resides in the directory <code>../../../mols-2d</code>
(relative to the URL of this document).</p>

<p>
<center>
<script LANGUAGE="JavaScript1.1" SRC="../../../marvin.js"></script>
<script LANGUAGE="JavaScript1.1">
<!--
msketch_begin("../../..", 540, 480);
msketch_param("importConv", "-H");
msketch_param("mol", "../../../mols-2d/structure.mol");
msketch_param("implicitH","all");
msketch_end();
//-->
</script>
</center>

<p>The source of the HTML file is as follows:
</p>

<blockquote>
<pre class="sh_html">
&lt;script LANGUAGE=&quot;JavaScript1.1&quot; SRC=&quot;../../../<a HREF="../marvin.js.txt">marvin.js</a>&quot;&gt;&lt;/script&gt;
&lt;script LANGUAGE=&quot;JavaScript1.1&quot;&gt;
&lt;!--
</pre><pre class="sh_javascript">msketch_begin(&quot;../../..&quot;, 540, 480);
msketch_param(&quot;<a HREF="../../../help/developer/sketchman.html#parameters.mol">mol</a>&quot;, &quot;../../../mols-2d/structure.mol&quot;);
msketch_param(&quot;<a HREF="../../../help/developer/sketchman.html#parameters.parameters.importConv">importConv</a>&quot;, &quot;-H&quot;);
msketch_param(&quot;<a HREF="../../../help/developer/sketchman.html#parameters.implicitH">implicitH</a>&quot;, &quot;true&quot;);
msketch_end();
</pre><pre class="sh_html">//--&gt;
&lt;/script&gt;
</pre>
</blockquote>

<p>
<center><div class="lenia">&nbsp;</div></center>
<p>
In the <a HREF="templates.html">next example</a>, you can use structure templates.


</body>
</html>
